﻿@model DealKhuyenMaiV2.com.Models.RegisterModel
@{
    ViewBag.Title = "Register";
    Layout = "~/Views/Shared/_MemberGuestLayout.cshtml";
   
}
<!DOCTYPE html>
<html>
<head>
    <link href="@Url.Content("/Content/DefaultThemes/Styles/login.css")" rel="stylesheet" type="text/css" />
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=AIzaSyBJYUiP0GUFitcMboSth7nDK61S8IiZyz0"
        type="text/javascript"></script>
    <script src="../../Scripts/gMap.js" type="text/javascript"></script>
    <script type ="text/javascript">

        $(document).ready(function () {

            initializeGmarker("map_canvas", "#Latitude", "#Longitude", "#AddressReceive");

            $("#kocan").hide(1500);


            $("#IDType").change(function () {
                var $htm = $("#IDType").val();
                if ($htm == "2") {
                    $("#kocan").show(1000);
                }
                else {
                    $("#kocan").hide(1000);

                }
            });
            
           
        });
    </script>
    <style type="text/css">
        .Combobox
        {
            width: 232px;
            height: 40px;
            font-size: large;
        }
    </style>

</head>
<body>
    <div class="body-left">
        <!--Unknown-->
        <!-- UPD 27.10.3 -->
        <div class="middle-box-white">
            <div class="middle-box-title">
                <div class="left">
                    <h3>
                        <span class="middle-size">Đăng kí</span>hay<a href="@Url.Action("LogOn", "Account")"><span
                            style="color: dodgerblue"> Đăng nhập</span></a>
                    </h3>
                </div>
                <div class="clear">
                </div>
            </div>
            <div class="middle-box-content">
                <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
                <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
                @using (Html.BeginForm())
                {
                    
                    @Html.ValidationSummary(true, "Đăng kí account không thành công. Vui lòng thử lại")
                    <div style="position: relative; margin: 0 auto;">
                        <fieldset>
                            <table class="table-user-detail">
                                <tbody>
                                    <tr>
                                        <td>
                                            @Html.LabelFor(m => m.Email)
                                        </td>
                                        <td>
                                            <p>
                                                <div class="div_txtDK">
                                                    @Html.TextBoxFor(m => m.Email)
                                                    @Html.ValidationMessageFor(m => m.Email)
                                                </div>
                                            </p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            @Html.LabelFor(m => m.IDType)
                                        </td>
                                        <td>
                                            <p>
                                                <div class="div_txtDK">
                                                    @Html.DropDownList("IDType", (SelectList)ViewBag.IDType)
                                                    @Html.ValidationMessageFor(m => m.IDType)
                                                </div>
                                            </p>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>
                                            @Html.LabelFor(m => m.Password)
                                        </td>
                                        <td>
                                            <p>
                                                <div class="div_txtDK">
                                                    @Html.PasswordFor(m => m.Password)
                                                    @Html.ValidationMessageFor(m => m.Password)
                                                </div>
                                            </p>
                                        </td>
                                    </tr>
                                    
                                    <tr>
                                        <td>
                                            @Html.LabelFor(m => m.ConfirmPassword)
                                        </td>
                                        <td>
                                            <p>
                                                <div class="div_txtDK">
                                                    @Html.PasswordFor(m => m.ConfirmPassword)
                                                    @Html.ValidationMessageFor(m => m.ConfirmPassword)
                                                </div>
                                            </p>
                                        </td>
                                    </tr>
                                    
                                    <tr>
                                        <td>
                                            @Html.LabelFor(m => m.AddressReceive)
                                        </td>
                                        <td>
                                            <p>
                                                <div class="div_txtDK">
                                                    @Html.TextBoxFor(m => m.AddressReceive)
                                                    @Html.ValidationMessageFor(m => m.AddressReceive)
                                                </div>
                                            </p>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            @Html.LabelFor(m => m.phonenumber)
                                        </td>
                                        <td>
                                            <p>
                                                <div class="div_txtDK">
                                                    @Html.TextBoxFor(m => m.phonenumber)
                                                    @Html.ValidationMessageFor(m => m.phonenumber)
                                                </div>
                                            </p>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                           
                            <div id="kocan">
                                
                                <br />
                                <h2>Thông tin dành cho thành viên công ty </h2>
                                <br/>
                                <div style="border: 1px; border-color: cornflowerblue; border-style: solid;">
                                    <input id="Map2Addr" type="checkbox" />Chuyển map sang địa chỉ
                                    <input id="Addr2Map" type="checkbox" />Chuyển địa chỉ sang map
                                    <input type="button" value="Select Center" title="Chọn trung tâm là địa điểm của bạn!"
                                           id="SelectCenter" />
                                    <input type="button" value="Your Location" title="Chọn địa địa hiện tại bạn đang ở!"
                                           id="YourLocation" />
                                    <br />
                                    <br />
                                    <div id="map_canvas" style="width: 100%; height: 400px">
                                    </div>
                                </div>

                                <table class="table-user-detail">
                                    <tbody>
                                        
                                        <tr>
                                            <td>
                                               
                                            </td>
                                            <td>
                                                <p>
                                                    <div class="div_txtDK">
                                                        @Html.TextBoxFor(m => m.Latitude, new { @Value = "0", @type = "hidden" })
                                                    </div>
                                                </p>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                               
                                            </td>
                                            <td>
                                                <p>
                                                    <div class="div_txtDK">
                                                        @Html.TextBoxFor(m => m.Longitude, new { @Value = "0", @type = "hidden" })
                                                    </div>
                                                </p>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                @Html.LabelFor(m => m.FULLNAME)
                                            </td>
                                            <td>
                                                <p>
                                                    <div class="div_txtDK">
                                                        @Html.TextBoxFor(m => m.FULLNAME)
                                                        @Html.ValidationMessageFor(m => m.FULLNAME)
                                                    </div>
                                                </p>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                @Html.LabelFor(m => m.Description)
                                            </td>
                                            <td>
                                                <p>
                                                    <div class="div_txtDK">
                                                        @Html.TextAreaFor(m => m.Description, new { @cols = 60, @rows = 10 })
                                                        @Html.ValidationMessageFor(m => m.Description)
                                                    </div>
                                                </p>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div style="position: relative; margin: 0 auto;left: 140px;">
                            <p style="margin: 0 auto;">
                                @Html.Raw(Html.GenerateCaptcha())
                            </p>
                            </div>
                            <p class="middle-box-button">
                                <input type="submit" value="Đăng kí" class="button_cam" />
                            </p>
                        </fieldset>
                    </div>  
                }
            </div>
        </div>
    </div>
</body>
</html>
